package com.lifo.good.dao;

import com.lifo.good.bean.model.HfGoodDescription;
import com.lifo.good.bean.model.HfGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2018/5/15 0015.
 */
@Mapper
public interface SearchHfGoodDescriptionMapper {

    /**
     * 查询单个商品详情
     * @param hfGoodId
     * @return
     */
    HfGoodDescription searchHfGoodDescriptionByHfGoodId(@Param(value = "hfGoodId") int hfGoodId);

    /**
     * 根据hfUid更新goodInfo字段
     * @param hfUid 主键
     * @return
     */
    void updateHfGoodDescriptionByHfUid(@Param(value = "hfUid") int hfUid,@Param(value = "goodInfo") String goodInfo);

    /**
     * 根据商品详情清洗状态查询商品详情条数
     * @param isClear
     * @return
     */
    List<HfGoodDescription> getHfGoodDescriptionsTop100ByIsClear(int isClear);
}
